终端命令启动Sublime Text 3 和 VS Code

加入软连接:

1
2
3
4
5
6
7
8
// 如果你是sublime 2
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

// 如果你是sublime 3
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

// vs code
sudo ln -s /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code /usr/local/bin/code